﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace BlondeHeaven.BLL
{
    public interface IBllUserService<T> where T : class, new()
    {
        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="model"></param>
        /// <param name="IsSave"></param>
        /// <returns></returns>
        T Add(T model, bool IsSave);
        /// <summary>
        /// 登入
        /// </summary>
        /// <param name="phone"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        bool Login(string phone, string password);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="phone"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task ChangePassword(string phone, string password);
        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task ChangeUserInformation(T model);
        /// <summary>
        /// 保存道数据库
        /// </summary>
        /// <returns></returns>
        int SaveChanges();
    }
}
